projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1134e5
)
dnd-quartz: take hot spot into account when setting up drag
author
Kristian Rietveld
<kris@gtk.org>
Tue, 19 Oct 2010 11:26:06 +0000
(13:26 +0200)
committer
Kristian Rietveld
<kris@gtk.org>
Tue, 19 Oct 2010 12:07:39 +0000
(14:07 +0200)
gtk/gtkdnd-quartz.c
patch
|
blob
|
history
diff --git
a/gtk/gtkdnd-quartz.c
b/gtk/gtkdnd-quartz.c
index 74964d00e160517f91864ab028ffe170c8144fd9..bc27d1444f2294d4eab37f2b07040e2067c746a7 100644
(file)
--- a/
gtk/gtkdnd-quartz.c
+++ b/
gtk/gtkdnd-quartz.c
@@
-1080,6
+1080,9
@@
gtk_drag_begin_idle (gpointer arg)
drag_image = _gtk_quartz_create_image_from_pixbuf (info->icon_pixbuf);
+ point.x -= info->hot_x;
+ point.y -= info->hot_y;
+
[nswindow dragImage:drag_image
at:point
offset:NSMakeSize(0, 0)